import Login from '@/page/Login.vue'
import NotFound from '@/page/404.vue'
import Home from '@/page/Home.vue'
import Main from '@/page/Main.vue'
import Table from '@/page/nav1/Table.vue'
import Form from '@/page/nav1/Form.vue'
import user from '@/page/nav1/user.vue'


let routes = [{
        path: '/',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '导航一',
        iconCls: 'ios-home', //图标样式class
        children: [
            { path: '/main', component: Main, name: '主页', hidden: true },
            { path: '/table', component: Table, name: 'table' },
            { path: '/form', component: Form, name: '表单' },
            { path: '/user', component: user, name: '列表' },
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];
